package com.dreamthen.controller;

import com.dreamthen.entity.User;
import com.dreamthen.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @Author zengms
 * @Date 2023-10-29 09:07:08
 **/
@Controller
public class UserController {

    @Autowired
    private IUserService iUserService;


    public User getUser(String id) {
        try {
            return iUserService.getUser(id,null);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
